<template>
	<view class="pages" >
		<web-view :src="link"></web-view> 
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				link:"",
			}
		},
		onLoad(opt) {
            // opt.link="https://mp.weixin.qq.com/mp/homepage?__biz=MzIyOTI2MDEyMw==&hid=3&sn=e7aedf85ea41e662ff821d7ae8385667"
			if (opt.link) {
                this.link=decodeURIComponent(opt.link)   
            } else{
               uni.$err("请传入链接") 
            }
		},
		methods: {
			async initData(module="api"){
				const content=await uni.$request({},module+"/applet/about")
				this.content=content
			},
			
		}
	}
</script>

<style lang="scss">
</style>